package com.woniu.his.pms.app.config;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SnowFlakeConfig {

    @Bean
    public Snowflake createSnowflake(){

        Snowflake snowflake= IdUtil.getSnowflake(0L,0L);
        return snowflake;
    }
}
